summon item_display ^-2 ^2.5 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:0}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^-1 ^2.5 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:1}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^0 ^2.5 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:2}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^1 ^2.5 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:3}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^2 ^2.5 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:4}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^-2 ^1.25 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:5}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^-1 ^1.25 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:6}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^0 ^1.25 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:7}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^1 ^1.25 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:8}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}
summon item_display ^2 ^1.25 ^ {item:{id:"barrier",components:{custom_data:{VoidShopSlot:{selected:false,id:9}}}},Tags:["VoidShop.entity","VoidShop.slot",summonSlot,GameCtrol]}

summon interaction ^-2 ^2.2 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^-1 ^2.2 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^0 ^2.2 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^1 ^2.2 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^2 ^2.2 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^-2 ^0.95 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^-1 ^0.95 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^0 ^0.95 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^1 ^0.95 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}
summon interaction ^2 ^0.95 ^ {Tags:["VoidShop.entity","VoidShop.slotInteraction",GameCtrol],width:0.55,height:0.55,response:true}

summon text_display ^2 ^2.9 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^1 ^2.9 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^0 ^2.9 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^-1 ^2.9 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^-2 ^2.9 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^2 ^1.65 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^1 ^1.65 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^0 ^1.65 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^-1 ^1.65 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}
summon text_display ^-2 ^1.65 ^0.2 {text:'{"text": "售罄","color": "white"}',billboard:"horizontal",Tags:["VoidShop.entity","VoidShop.slotText","VoidShop.slotTextSummon",GameCtrol],background:0}


execute as @e[tag=VoidShop.slotTextSummon,type=text_display,distance=..10] run data modify entity @s Rotation set from entity @n[tag=summon1,type=text_display,distance=..10] Rotation
execute as @e[tag=VoidShop.slotTextSummon,type=text_display,distance=..10] run function vs:system/game_ctrol/void_shop/slot/text/toggle_display
execute as @e[tag=summonSlot,distance=..10,type=item_display] run data modify entity @s transformation.scale set value [0.5f,0.5f,0.5f]
execute if entity @n[tag=red,distance=..10,type=marker,tag=VoidShop] as @e[tag=summonSlot,distance=..10,type=item_display] at @s run tp @s ~ ~ ~ 180 0

tag @e[tag=VoidShop.slotTextSummon,type=text_display,distance=..10] remove VoidShop.slotTextSummon
tag @e[tag=summonSlot,type=item_display,distance=..10] remove summonSlot